//
//  HLHomeListRequest.m
//  YueYue
//
//  Created by hulu001 on 2023/5/17.
//

#import "HLHomeListRequest.h"

@implementation HLHomeListRequest
{
    NSString *_code;
}

- (id)initWithCode:(NSString *)code
{
    self = [super init];
    
    if (self) {
        _code = code;
        self.page = 1;
    }
    
    return self;
}

- (NSString *)requestUrl
{
    return @"/user/recommend/list";
}

- (YTKRequestMethod)requestMethod
{
    return YTKRequestMethodGET;
}

- (id)requestArgument
{
    return @{@"pageNum":@(self.page), @"labelCode": _code, @"pageSize":HLListPageSize};
}

- (NSArray <HLHomeListModel *> *)homeList
{
    NSArray *lists = @[];
    
    NSDictionary *data = [self.result valueForKey:@"data"];
    if (![data isKindOfClass:[NSDictionary class]]){
        return lists;
    }
    
    NSArray *records = [data valueForKey:@"records"];
    
    if ([HLRunTime shareInstance].isFood) {
        if ([_code isEqualToString:@"attention"]){
            records = @[];
        }
        if ([_code isEqualToString:@"today"]) {
            records = [self todayDatas];
        }
        if ([_code isEqualToString:@"week"]) {
            records = [[self todayDatas] subarrayWithRange:NSMakeRange(4, 3)];
        }
    }
    
    if (records.count > 0) {
       lists = [HLHomeListModel mj_objectArrayWithKeyValuesArray:records];
    }
    
    return [lists qmui_mapWithBlock:^HLHomeListModel *(HLHomeListModel *item, NSInteger index) {
        item.tagCode = self->_code;
        return item;
    }];
}

- (NSArray<NSDictionary *>*)todayDatas
{
    return @[
        @{
            @"age": @"21",
            @"avatar":@"http://pfoss.yueyueworld.com/default-avatar/female/43.png",
            @"avatarStatus": @"1",
            @"birthday": @"2003-07-18",
            @"chatUp": @"0",
            @"countryId": @"CN",
            @"countryName": @"675大卡",
            @"flashChat": @"0",
            @"flashChatCover":@"http://pfoss.yueyueworld.com/test/cover-pic/2301123082110003/28930f1b208a4788b08a8bfa3745826b.jpeg",
            @"isVip":@"0",
            @"levelCode": @"1",
            @"nickName": @"愁愁",
            @"onlineExpireTime": @"2023-12-28 16:11:57",
            @"opuses":@[
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/0d58e578e8e087f22b73c89c237619c83f81a46846304-A5wbJw_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/3410be1708cc728f823a2eacdb81b32f8f3f87466c82f5-qqzdXK_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/9710db7a037d5fe621f8416f6f263fab2bddaa76a76d-JILN8C_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/efe2d7c5c3130edf1a8d5ebf83f22eddd0b8fc51b473-1Qmytr_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            
            ],
            @"selfSign": @"轻食生活，让健康与美味同行。在繁忙的生活中，我们追求的不再是过度的饱腹，而是适度的满足。轻食，是一种生活态度，是对自己的呵护，对生活的尊重。它不仅仅是食物的选择，更是一种健康、积极、简约的生活方式。在轻食的世界里，我们回归自然，感受食物最原始的美味。我们拥抱绿色，选择低脂、低卡、高纤维、高营养的食物，为身体注入活力。我们摒弃过度烹饪，保留食物的原汁原味，让味蕾体验最纯净的享受。让我们一起走进轻食生活，用健康的饮食习惯，点亮生活的每一个瞬间",
            @"sex": @"2",
            @"userId":@"2301123071810001",
            @"userYueId":@"1785",
        },
        @{
            @"age": @"29",
            @"avatar":@"http://pfoss.yueyueworld.com/default-avatar/female/27.png",
            @"avatarStatus": @"1",
            @"birthday": @"1995-09-12",
            @"chatUp": @"0",
            @"countryId": @"CN",
            @"countryName": @"728大卡",
            @"flashChat": @"0",
            @"flashChatCover":@"http://pfoss.yueyueworld.com/test/cover-pic/2301123082110003/28930f1b208a4788b08a8bfa3745826b.jpeg",
            @"isVip":@"0",
            @"levelCode": @"1",
            @"nickName": @"凝荷",
            @"onlineExpireTime": @"2023-12-28 16:11:57",
            @"opuses":@[
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/8cefe6c03eb867af89f9dd30709b029eb2b2cb87cdd8e-l6eQr8_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/e2fa317cb0e4b6a5c3ce7048be598732da01d3a15b473-uofGNo_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/e2058990fd2ed6762a62bc377fa99caa97afc11b265d9-jpgpc6_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/4036c902b2acdfe90bafc345957d2415cc7744cd1b72db-KBVbie_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            
            ],
            @"selfSign": @"在繁忙的生活中，我们常常被各种压力和焦虑所困扰，而忽视了身体的需要。现在，让我们一起加入轻食生活的行列，用简单、健康的食材，打造美味、营养的饮食。在轻食的世界里，我们回归自然，享受每一口食物带来的纯净能量，让生活变得更加轻松、自在。不论是早餐、午餐还是晚餐，轻食都能为你提供丰富的营养，满足你的口腹之欲。让我们一起踏上轻食之旅，感受生活的美好与宁静。",
            @"sex": @"2",
            @"userId":@"2301123091210002",
            @"userYueId":@"200818",
        },
        @{
            @"age": @"21",
            @"avatar":@"http://pfoss.yueyueworld.com/test/avatar/2301123081410003/233821d59f5d4c90996e30a0120ce294.jpg",
            @"avatarStatus": @"1",
            @"birthday": @"2003-08-14",
            @"chatUp": @"0",
            @"countryId": @"CN",
            @"countryName": @"487大卡",
            @"flashChat": @"0",
            @"flashChatCover":@"http://pfoss.yueyueworld.com/test/cover-pic/2301123082110003/28930f1b208a4788b08a8bfa3745826b.jpeg",
            @"isVip":@"0",
            @"levelCode": @"1",
            @"nickName": @"可可豆",
            @"onlineExpireTime": @"2023-12-28 16:11:57",
            @"opuses":@[
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/edfa159e1b7af1b31d28278f96196d184f27629b174b52-lRRWwf_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/575a9e72b83c46bfbc4d709f8894c6a25455e9a2ac120-ieqqf5_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/b05277011500b0b004c16f2cb946347bb970519dc66e0-rx098O_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/3b1c8c9a8684f857b626c93b211c0495c629c10d3ed1a-LL5SZ0_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            
            ],
            @"selfSign": @"追求简约、健康、美味的生活方式。在繁忙的生活中，轻食生活成为越来越多人的选择，因为它注重营养均衡、绿色健康，让人们在享受美食的同时，也能保持身心的平衡和愉悦。",
            @"sex": @"2",
            @"userId":@"2301123081410003",
            @"userYueId":@"200729",
        },
        @{
            @"age": @"24",
            @"avatar":@"http://pfoss.yueyueworld.com/default-avatar/female/19.png",
            @"avatarStatus": @"1",
            @"birthday": @"1990-08-26",
            @"chatUp": @"0",
            @"countryId": @"CN",
            @"countryName": @"223大卡",
            @"flashChat": @"0",
            @"flashChatCover":@"http://pfoss.yueyueworld.com/test/cover-pic/2301123082110003/28930f1b208a4788b08a8bfa3745826b.jpeg",
            @"isVip":@"0",
            @"levelCode": @"1",
            @"nickName": @"晓露",
            @"onlineExpireTime": @"2023-12-28 16:11:57",
            @"opuses":@[
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/a540567c8332a8697ccc2888c7f9178342b8ac2044792-uTshv3_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/690ab8ce32ff261855c4cb88794446f877203c7c2932d-zwg2N5_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/36f31630c6046c15aeec0f4ba8268300c6f3219035f05-4frMMm_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/dbe574979feb946b0560b4e243627ef15e81309f2453e-rbWnLA",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            
            ],
            @"selfSign": @"我们追求低脂、低糖、低盐、高纤维、高营养的饮食，用天然食材和健康的烹饪方式，呈现出一道道色香味俱佳的美食。无论是早餐、午餐还是晚餐，轻食都能为你提供充足的营养和能量，让你在忙碌的生活中保持活力四射。",
            @"sex": @"2",
            @"userId":@"2301123122810001",
            @"userYueId":@"200948",
        },
        @{
            @"age": @"34",
            @"avatar":@"http://pfoss.yueyueworld.com/test/avatar/2301123082110003/4fe72011b8224648b4d252d1785478be.jpg",
            @"avatarStatus": @"1",
            @"birthday": @"1990-08-26",
            @"chatUp": @"0",
            @"countryId": @"CN",
            @"countryName": @"928大卡",
            @"flashChat": @"0",
            @"flashChatCover":@"http://pfoss.yueyueworld.com/test/cover-pic/2301123082110003/28930f1b208a4788b08a8bfa3745826b.jpeg",
            @"isVip":@"0",
            @"levelCode": @"1",
            @"nickName": @"乐瑶",
            @"onlineExpireTime": @"2023-12-28 16:11:57",
            @"opuses":@[
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/b9b4132c24e27f6d2f38eb0bcafb345876ab9b5c32760-eibBIC_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/6f16fa07061b8955af9974a8f8dcc6798d93f9df9b72e-xxSZfp_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/e1b53f79f218399373209bf78983ea1eec38aefa926a92-fGivRY_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/6590040e4d68db89d3c31c73068e0405007b535e44389-phuEzp_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            
            ],
            @"selfSign": @"轻食生活不仅是一种饮食方式，更是一种生活态度。它告诉我们，在快节奏的社会中，我们应该放慢脚步，关注自己的身体健康和心理健康。通过轻食生活的实践，我们可以更好地了解自己的身体需求，改善饮食习惯和生活方式，让自己更加健康、快乐地生活。",
            @"sex": @"2",
            @"userId":@"2301123082110003",
            @"userYueId":@"200754",
        },
        @{
            @"age": @"21",
            @"avatar":@"http://pfoss.yueyueworld.com/test/avatar/2301123122010003/5e54c8ea8b4a40f389a7034245b00255.jpg",
            @"avatarStatus": @"1",
            @"birthday": @"2003-12-20",
            @"chatUp": @"0",
            @"countryId": @"CN",
            @"countryName": @"628大卡",
            @"flashChat": @"0",
            @"flashChatCover":@"http://pfoss.yueyueworld.com/test/cover-pic/2301123082110003/28930f1b208a4788b08a8bfa3745826b.jpeg",
            @"isVip":@"0",
            @"levelCode": @"1",
            @"nickName": @"zhaoyang",
            @"onlineExpireTime": @"2023-12-28 16:11:57",
            @"opuses":@[
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/9adcf4d0c3b42eb187a513d4b13dcee54e933b3066cc41-99VNJb_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/1fab5cdbebd5001fbf425ebda895507a17acae862ef9c-IyH6k8_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/82ae8d3a113270fa08040263985f108f99def39f1da7f-4kQ2C1_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/95329c23638287b7f136a7f0e05dbe103993ae6219594-huIK3I_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            
            ],
            @"selfSign": @"让每一天都充满活力。在轻食的世界里，我们更注重食物的天然和有机，更关心身体的需要和感受。让我们一起拥抱轻食的生活方式，让每一天都充满活力和激情。",
            @"sex": @"2",
            @"userId":@"2301123122010003",
            @"userYueId":@"200944",
        },
        @{
            @"age": @"24",
            @"avatar":@"http://pfoss.yueyueworld.com/test/avatar/2301123072010001/242bca1211ab45b8a5e35fb4bcd50523-1690884424.jpg",
            @"avatarStatus": @"1",
            @"birthday": @"2000-08-01",
            @"chatUp": @"0",
            @"countryId": @"CN",
            @"countryName": @"324大卡",
            @"flashChat": @"0",
            @"flashChatCover":@"http://pfoss.yueyueworld.com/test/cover-pic/2301123082110003/28930f1b208a4788b08a8bfa3745826b.jpeg",
            @"isVip":@"0",
            @"levelCode": @"1",
            @"nickName": @"OyO",
            @"onlineExpireTime": @"2023-12-28 16:11:57",
            @"opuses":@[
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/40d798523e443c74407d2801d38d2ef2ac91b74f54af3-YYqdAY_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/898840f384f48ce0856bd9488da02d6ef24e63a12311a9-tQN3Cf_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/69812a517de5350a9ef00619aa7485365ef2165536a86e-oqGno7_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            @{
                                @"opusId": @"32952857443f4a5dae19634503f1e455",
                                @"opusLink":@"https://gd-hbimg.huaban.com/0327ccc18e8106fa392f2f7b281c163fb0addb851049ac-KuImu5_fw1200webp",
                                @"opusStatus":@"2",
                                @"opusType": @"1",
                            },
                            
            ],
            @"selfSign": @"简约而不失品味。在快节奏的现代生活中，我们需要的不仅是饱腹的食物，更是能滋养身心的美味。轻食，是一种对生活的敬意，是对自己的呵护。让我们一起享受轻食的乐趣，让生活变得更加有滋有味。",
            @"sex": @"2",
            @"userId":@"2301123072010001",
            @"userYueId":@"1800",
        },
    ];
}

@end
